package edu.ycu.aladdin.collector;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Profile;

/**
 * @author <a href="mailto:wangruihuano@gmail.com">王瑞环</a>
 * @since 1.0
 */
@Slf4j
@SpringBootApplication
@Profile("junit")
public class BootStrap4Junit implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(BootStrap4Junit.class, args);
    }

    @Override
    public void run(String... args) throws Exception {

        log.info("spring.profiles.active:{}",System.getProperty("spring.profiles.active"));
    }
}
